﻿@{
    ViewBag.Title = "_ProductVariant_List";
}

<div>
    

<table class="table table-hover">
    
    <tr>
        <th>
           @T("Admin.ProductVariant.List.Name")
        </th>
        <th>
           @T("Admin.ProductVariant.List.Sku")  
        </th>
        <th>
            @T("Admin.ProductVariant.List.Price")  
            
        </th>
        <th>
            
            @T("Admin.ProductVariant.List.StockQuantity")  
        </th>
        <th> @T("Admin.ProductVariant.List.DisplayOrder")  
          
        </th>
        <th>@T("Admin.ProductVariant.List.Published")  
        </th>
        <th>
        </th>
    </tr>

<!-- ko foreach: ProductVariants -->

    <tr>
        <td>
            <span data-bind="text:Name"></span>            
        </td>
        <td>
            <span data-bind="text:Sku"></span>            
        </td>
        <td>
            <span data-bind="text:Price"></span>            
        </td>
        <td>
            <span data-bind="text:StockQuantity"></span>            
        </td>
        <td>
            <span data-bind="text:DisplayOrder"></span>            
        </td>
        <td>
            <span data-bind="text:Published"></span>            

        </td>
        <td>
            <a data-bind="attr:{href: '/admin/ProductVariant/Edit?productVariantId=' + Id()}">@T("Admin.ProductVariant.List.Edit.Button.Title")  </a>
            &nbsp; <a data-bind="click:$root.DeleteProductVariant">@T("Admin.ProductVariant.List.Delete.Button.Title")  </a>
        </td>
    </tr>    

<!-- /ko -->
</table>


<a  data-bind="attr:{href: '/admin/ProductVariant/Create?productId=' + $root.Id()}">@T("Admin.ProductVariant.List.Create.Button.Title")</a>
    
    
</div>